<?php
//连接数据库
$conn = mysqli_connect('localhost','root','root','vote2');
//设置字符集
mysqli_query($conn,'set names utf8');